<%-- 
    Document   : formModifFicheVoeux2
    Created on : 31 mai 2013, 17:35:39
    Author     : ali
--%>


<%@page import="EDT.api.API"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.util.Date"%>
<%@page import="java.util.Calendar"%>
<%@page import="java.text.DateFormat"%>
<%@page import="java.util.ArrayList"%>
<%@page import="EDT.obj.Intervenant"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
                
        <title>Editer Fiche de  voeux  2</title>
            <link rel="stylesheet" href="Accueil.css" />
            <link rel="SHORTCUT ICON" href="./edt.jpg" />
            <link rel="stylesheet" href="calendrier.css" />
           
    </head>


    <body>    
         
    <section>

   <html:errors/> 
   <%
    String form ="";
    
    
     
       int interv =Integer.parseInt(request.getParameter("interv"));
        int annee =Integer.parseInt(request.getParameter("annee"));
         String periode =request.getParameter("periode");
       
        form += "<form method='POST' action='ModifFicheVoeuAct.do' target='section'>";
     
         ArrayList<Intervenant> intervenant = (ArrayList<Intervenant>) session.getAttribute("intervenant");
         
         for (Intervenant i : intervenant)
            if(i.getId()== interv)
                form +="<h3>La fiche de voeux de "+i.getPrenom()+" "+i.getNom()+
                        " "+ annee+"/"+(annee+1)+" "+periode+"</h3>";
        
                form += "<h5>Cochez la case de periode ou vous voulez travailler</h5>"; 
        //form += "<form method='POST' action='AjoutFicheVoeu2.do' target='section'>";
         
                form += "<input type='hidden' name='key' value='"+session.getAttribute("key")+"'/>";
        
        form +="<input type='hidden' name='interv' value='"+interv+"' />";
        
        form +="<input type='hidden' name='annee' value='"+annee+"' />";
        
        form +="<input type='hidden' name='periode' value='"+periode+"' />";
        
        DateFormat dateFormat = new SimpleDateFormat("yyyy");
        Calendar cal = Calendar.getInstance(); 
        cal.setTime(new Date()); 
        
        String CalendrierFicheVoeu = EDT.api.API.getFormModificationFicheVoeuxAdmin((String)session.getAttribute("key"),interv,annee,periode);
        
       form += CalendrierFicheVoeu;
                       
       
        out.println(form);
            
    %>
    
   
    
    
    
    
  

    </form>
         
    </section>
    </body>
</html>

